<table border="0" cellpadding="0" cellspacing="0" width="100%">

<?php


require_once("../../business/MenuController.php");	

$menus = retrieveMenus($_SESSION['userId']);

$menuHeaders = retrieveMenuHeaders($menus);

	for($i=0;$i<sizeOf($menuHeaders);$i++){
	
?>
			<tr>
            	<td class="MenuItem" align="left"><a href="<?php echo $menuHeaders[$i][3];?>"><?php echo $menuHeaders[$i][1];?></a></td>
            </tr>
<?php
	
		for($j=0;$j<sizeOf($menus);$j++){
			
			if($menuHeaders[$i][0]==$menus[$j][2]){
	
?>
			<tr>
            	<td class="SubMenuItem" align="left"><a href="<?php echo $menus[$j][3];?>"><?php echo $menus[$j][1];?></a></td>
            </tr>
<?php
						
			}	
		}
	}


?>
	
    
	
</table>

